const arr = [1, 2, 3]
const { 0: first, length, [length - 1]: last } = arr
first;//1
last;//3
length;//3